#ifndef CHARACTERWIDGET_H
#define CHARACTERWIDGET_H

#include <QWidget>

class Character;
class Adept;
class NameGiver;

namespace Ui {
class CharacterWidget;
}

class CharacterWidget : public QWidget
{
  Q_OBJECT

public:
  explicit CharacterWidget(QWidget *parent = 0);
  ~CharacterWidget();

  QString csv() const;
  QString idd() const;

public slots:
  void setCharacter(Character*c);
  void clear();

private:
  Ui::CharacterWidget *ui;
  QString _csv;
  QString _idd;

  void generateCsv(NameGiver* ng,Adept* a);
  void generateIdd(NameGiver* ng,Adept* a);

};

#endif // CHARACTERWIDGET_H
